<div class="container">
	<div class="row">
		<div class="col-sm-8">
			<a class="navbar-brand navbar-title" href="#">Add Company</a>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-8">
			<div id="message"></div>
                <?php echo form_open("company/add_company"); ?>
       		<div class="contact-form">
				<div class="row">
					<div class="col-sm-6">
						<input name="name" type="text" id="name" value="<?php echo set_value('name'); ?>"
						class="form-control contact-input" placeholder="Company Name">
						<?php echo form_error('name', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<input name="email" type="text" id="email" class="form-control contact-input animate" 
						placeholder="Email" value="<?php echo set_value('email'); ?>" />
						<?php echo form_error('email', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label>Tel Number</label> 
							<input name="tel_number1" size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo set_value('tel_number1'); ?>" />- 
							<input name="tel_number2" size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo set_value('tel_number2'); ?>" />- 
							<input name="tel_number3" size="4" class="numeric  contact-input animate" type="text" 
							maxlength="4" value="<?php echo set_value('tel_number3'); ?>" />
							<?php echo form_error('tel_number1', '<div class="error">', '</div>'); ?>
							<?php echo form_error('tel_number2', '<div class="error">', '</div>'); ?>
							<?php echo form_error('tel_number3', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label>Fax Number</label> 
							<input name="fax1" size="4" class="numeric  contact-input animate" type="text" maxlength="4"
							value="<?php echo set_value('fax1'); ?>" />- 
							<input name="fax2" size="4" class="numeric  contact-input animate" type="text" maxlength="4" 
							value="<?php echo set_value('fax2'); ?>" />- 
							<input name="fax3" size="4" class="numeric  contact-input animate" type="text" maxlength="4"
							value="<?php echo set_value('fax3'); ?>" />
         					<?php echo form_error('fax1', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('fax2', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('fax3', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<textarea id="address" rows="10" placeholder="Address" class="form-control contact-textarea" 
						name="address"><?php echo set_value('address'); ?></textarea>
						<?php echo form_error('address', '<div class="error">', '</div>'); ?>
	  				</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<input name="account_user" type="text" id="account_user" class="form-control contact-input animate"
						placeholder="Account User" value="<?php echo set_value('account_user'); ?>" />
						<?php echo form_error('account_user', '<div class="error">', '</div>'); ?>
                        <input name="password" type="password" id="password" class="form-control contact-input animate"
						placeholder="Password" value="<?php echo set_value('password'); ?>" />
						<?php echo form_error('password', '<div class="error">', '</div>'); ?>
                        <input name="password1" type="password" id="password1" class="form-control contact-input animate"
						placeholder="Re-Password" value="<?php echo set_value('password1'); ?>" />
						<?php echo form_error('password1', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<span class="pro"> 
							<label>Province :</label> 
							<?php echo form_dropdown ( "province", $option_province, "", "id='pro_id'" ); ?>
						</span>
							<?php echo form_error('province', '<div class="error">', '</div>'); ?>
						<span class="dis"> 
							<label>District :</label>
							    <?php echo form_dropdown ( "district", array ('--- SELECT DISTRICT ---' => 
							    '--- SELECT DISTRICT ---' ), '', 'disabled', "id='dis_id'" ); ?>
						</span>
							<?php echo form_error('district', '<div class="error">', '</div>'); ?>
					</div>
				</div>
				<div class="" id="addNewRow">
					<input type="hidden" id="HIDnum_row" name="HIDnum_row" value="0" />
					<input type="button" class="greenButton" id="BTTnewrow" name="BTTnewrow" value="Add Branch" style="margin-bottom: 15px" />
				</div>
				<div class="row">
					<div class="col-sm-6">
						<input name="con_name" type="text" id="con_name" class="form-control contact-input animate"
						placeholder="Contact Name" value="<?php echo set_value('con_name'); ?>" />
						<?php echo form_error('con_name', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-6">
						<label>Tel Number</label> 
							<input name="con_tel1" size="4" class="numeric  contact-input animate" type="text" maxlength="4"
							value="<?php echo set_value('con_tel1'); ?>" />- 
							<input name="con_tel2" size="4" class="numeric  contact-input animate" type="text" maxlength="4"
							value="<?php echo set_value('con_tel2'); ?>" />- 
							<input name="con_tel3" size="4" class="numeric  contact-input animate" type="text" maxlength="4"
							value="<?php echo set_value('"con_tel3"'); ?>" />
         					<?php echo form_error('con_tel1', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('con_tel2', '<div class="error">', '</div>'); ?>
         					<?php echo form_error('con_tel3', '<div class="error">', '</div>'); ?>
                	</div>
				</div>
				<div class="row">
					<div class="col-sm-12">
						<div class="pull-left clearfix">
							<button type="submit" id="submit" class="submit-btn active-btn">Submit</button>
							<button type="button" id="submit" class="submit-btn active-btn" onclick="history.go(-1);">Back</button>
						</div>
					</div>
				</div>
			</div>
                 <?php echo form_close(); ?>
            </div>
		<div class="col-sm-4"></div>
	</div>
</div>
